package cn.edu.zafu.bigdata.lmr;

class MathOperations {
        public int add(int a, int b) {
            return a + b;
        }

        public double add(double a, double b) {
            return a + b;
        }

        public int add(int a, int b, int c) {
            return a + b + c;
        }
    }

    public class Test2 {
        public static void main(String[] args) {
            MathOperations math = new MathOperations();

            int sumInt = math.add(5, 3);
            double sumDouble = math.add(5.5, 3.6);
            int sumThreeInts = math.add(5, 3, 2);


            System.out.println("Sum of two integers: " + sumInt);
            System.out.println("Sum of two doubles: " + sumDouble);
            System.out.println("Sum of three integers: " + sumThreeInts);
        }
    }
